/*
 * @Author: 大康
 * @Date: 2020-06-15 15:27:22
 * @LastEditors: 大康
 * @LastEditTime: 2021-04-01 17:14:15
 * @FilePath: /bd-h5-web/src/api/auth.js
 */
// 系统权限
import {
  get,
  post
} from '@/utils/request';
import Vue from 'vue';

export function getMenus(parm) {
  return get({
    url: Vue.prototype.$conf.baseUrl + '/sysMenu/getMenuListForLogin',
    params: parm
  });
}

export function getStations(parm) {
  return get({
    url: Vue.prototype.$conf.baseUrl + '/siteManagement/getAllSiteCorp',
    params: parm
  });
}

export function getUserRight(parm) {
  return post({
    url: Vue.prototype.$conf.baseUrl + '/privilege/userRight',
    data: parm
  });
}

export function getAddressByKeywords(parm) {
  return post({
    url: Vue.prototype.$conf.baseUrl + '/location/getAddressByKeywords',
    data: parm
  });
}
